//package com.mccken.demo.annotation;
//
//import java.lang.reflect.Method;
//
//import org.aspectj.lang.ProceedingJoinPoint;
//import org.aspectj.lang.Signature;
//import org.aspectj.lang.annotation.Around;
//import org.aspectj.lang.annotation.Aspect;
//import org.aspectj.lang.annotation.Pointcut;
//import org.aspectj.lang.reflect.MethodSignature;
//import org.springframework.core.annotation.Order;
//import org.springframework.stereotype.Component;
//
//import lombok.SneakyThrows;
//import lombok.extern.slf4j.Slf4j;
//
///**
// * @program: mccken-collect
// * @description:
// * @author: mccken
// * @create: 2022-10-27 19:42
// **/
//@Component
//@Aspect
//@Slf4j
//@Order(1)
//public class McckenLogAspect {
//
//	@Pointcut("@annotation(com.mccken.demo.annotation.McckenLog)")
//	public void aopPoint() {}
//	
//	@SneakyThrows
//	@Around("aopPoint()")
//	public Object run(ProceedingJoinPoint joinPoint) {
//		
//		Signature signature = joinPoint.getSignature();
//		MethodSignature methodSignature = (MethodSignature) signature;
//		Method method = joinPoint.getTarget().getClass().getMethod(methodSignature.getName(), methodSignature.getParameterTypes());
//		McckenLog annotation = method.getAnnotation(McckenLog.class);
//
//		System.out.println("McckenLogAspect start");
//		
//		Object proceed = joinPoint.proceed();
//		System.out.println("McckenLogAspect end");
//		return proceed;
//	}
//	
//	
//}
